package com.quad.innovators.salesease.service.warehouse;

import com.baomidou.mybatisplus.extension.service.IService;
import com.quad.innovators.salesease.model.entity.warehouse.SaleOrderDetail;
import com.quad.innovators.salesease.model.form.warehouse.SaleOrderDetailForm;
import com.quad.innovators.salesease.model.vo.warehouse.ScanCodeVO;

import java.util.List;

/**
 * @author : shanshan.li
 * @createTime : 2024/12/25 11:34
 * @Version : 1.0 
 */
public interface SaleOrderDetailService extends IService<SaleOrderDetail> {
    /**
     * @param code 销售退货单code
     * @return 销售单详情列表
     */
    List<SaleOrderDetailForm> getListBySaleReturnCode(String code);

    /**
     * 批量插入销售单详情列表
     * @param saleOrderDetailFormList 销售单详情列表
     * @param code 销售退货单code
     * @return 是否成功
     */
    boolean saveList(List<SaleOrderDetailForm> saleOrderDetailFormList, String code);

    /**
     * 批量修改销售单
     * @param code 销售退货单code
     * @param saleOrderDetailFormList 销售单列表
     * @return 返回是否成功
     */
    boolean updateList(String code, List<SaleOrderDetailForm> saleOrderDetailFormList);

    /**
     * 根据销售单详情code,获取扫码情况
     * @param saleOrderDetailCode 销售单详情code
     * @return 扫码列表
     */
    List<ScanCodeVO> getScanDetail(String saleOrderDetailCode);
}
